﻿using BCCommon.Extensions;
using BCCommon.TMS.Transport;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCDto.TMS.MarketingCoupon.MarketingCouponType
{
    public class MarketingCouponTypeDto
	{
		/// <summary>
		/// 营销优惠券类型Id
		/// </summary>
		public long MarketingCouponTypeId { get; set; }
		/// <summary>
		/// 优惠券类型
		/// </summary>
		public string CouponType { get; set; }
		/// <summary>
		/// 优惠券名称
		/// </summary>
		public string CouponName { get; set; }
		/// <summary>
		/// 优惠券概要
		/// </summary>
		public string CouponSummark { get; set; }
		/// <summary>
		/// 优惠金额
		/// </summary>
		public decimal CouponAmount { get; set; }
		/// <summary>
		/// 优惠券总数量
		/// </summary>
		public int CouponCount { get; set; }
		/// <summary>
		/// 剩余数量
		/// </summary>
		public int RemainCount { get; set; }
		/// <summary>
		/// 领取数量
		/// </summary>
		public int ReceivedCount { get; set; }
		/// <summary>
		/// 使用数量
		/// </summary>
		public int UsingCount { get; set; }
		/// <summary>
		/// 失效数量
		/// </summary>
		public int InvalidCount { get; set; }
		/// <summary>
		/// 已启用
		/// </summary>
		public bool Enabled { get; set; }
		/// <summary>
		/// 代理商
		/// </summary>
		public long? AgentRecordId { get; set; }
		/// <summary>
		/// 是否通用
		/// </summary>
		public bool IsCommon { get; set; }
		/// <summary>
		/// 开始日期
		/// </summary>
		public DateTime StartDate { get; set; }
		/// <summary>
		/// 结束日期
		/// </summary>
		public DateTime EndDate { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime { get; set; }
		/// <summary>
		/// 创建人Id
		/// </summary>
		public long CreateAdminId { get; set; }
		/// <summary>
		/// 创建人姓名
		/// </summary>
		public string CreateAdminName { get; set; }
		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime UpdateTime { get; set; }
		/// <summary>
		/// 修改人Id
		/// </summary>
		public long EditAdminId { get; set; }
		/// <summary>
		/// 修改人姓名
		/// </summary>
		public string EditAdminName { get; set; }
		/// <summary>
		/// 是否通用运输业务
		/// </summary>
		public bool IsCommonBusiness { get; set; }
		/// <summary>
		/// 车辆运输业务配置Id
		/// </summary>
		public long? VehicleTransportBusinessConfigId { get; set; }
		/// <summary>
		/// 运输业务
		/// </summary>
		public TransportBusinessType? TransportBusiness { get; set; }

		/// <summary>
		/// 运输业务
		/// </summary>
		public string TransportBusinessStr => TransportBusiness.HasValue ? TransportBusiness.Value.GetDescriptionString() : null;


	}
}
